﻿#region

using System.Collections.Generic;
using Newtonsoft.Json;

#endregion

namespace PTCN.CrossPlatform.BettingGame.Bingo.Models
{
    public class SedieState
    {
        [JsonIgnore]
        public long AccountId { get; private set; }

        public List<SedieActions> Actions { get; private set; }

        public SedieState(long accountId)
        {
            AccountId = accountId;
            Actions = new List<SedieActions>(5);
        }

        public void AddNewAction(SedieActions action)
        {
            if (!Actions.Contains(action)) Actions.Add(action);
        }

        public void RemoveAction(SedieActions action)
        {
            Actions.Remove(action);
        }

        internal void Refresh()
        {
            Actions = new List<SedieActions>(5);
        }
    }
}